
#Region "Summary"
''' -----------------------------------------------------------------------------
''' Project	 : PTT.StationsTracking.Data
''' Class	 : StationsTracking.Data.QueryInvCarSize
''' 
''' -----------------------------------------------------------------------------
''' <summary>
''' Query Result Single Business Entity
''' </summary>
''' <remarks>
''' Sample of business entity coding
''' </remarks>
''' <history>
''' 	[Generater by Nok]	21/3/2549 15:43:25	Created
''' </history>
''' -----------------------------------------------------------------------------
#End Region

#Region ".NET Framework Class Import"
Imports System
Imports System.Xml.Serialization
Imports System.IO
Imports System.Runtime.Serialization
Imports System.Runtime.Serialization.Formatters.Binary
Imports System.Collections
#End Region

<Serializable()> _
Public Class QueryInvCarSize
#Region "Internal member variables"
    Private _SizeId As Int16
    Private _SizeName As String
    Private _SizeStatus As Byte
#End Region

    Public Sub New()
        _SizeId = Nothing
        _SizeName = Nothing
        _SizeStatus = Nothing
    End Sub

    Public Sub New(ByVal SizeId As Int16, _
       ByVal SizeName As String, _
       ByVal SizeStatus As Byte)
        _SizeId = SizeId
        _SizeName = SizeName
        _SizeStatus = SizeStatus
    End Sub

#Region "Property"

    Public Property SizeId() As Int16
        Get
            Return _SizeId
        End Get
        Set(ByVal value As Int16)
            _SizeId = value
        End Set
    End Property


    Public Property SizeName() As String
        Get
            Return _SizeName
        End Get
        Set(ByVal value As String)
            _SizeName = value
        End Set
    End Property


    Public Property SizeStatus() As Byte
        Get
            Return _SizeStatus
        End Get
        Set(ByVal value As Byte)
            _SizeStatus = value
        End Set
    End Property

#End Region
End Class

''' -----------------------------------------------------------------------------
''' Project	 : PTT.StationsTracking.Data
''' Class	 : StationsTracking.Data.QueryInvCarSizes
''' 
''' -----------------------------------------------------------------------------
''' <summary>
''' Collection of query result
''' </summary>
''' <remarks>
''' Sample
''' </remarks>
''' <history>
''' 	[NOK'S Generater]	21/3/2549 15:43:25	Created
''' </history>
''' -----------------------------------------------------------------------------
<Serializable()> _
Public Class QueryInvCarSizes
    Inherits CollectionBase


    Default Public ReadOnly Property Item(ByVal index As Integer) As QueryInvCarSize
        Get
            If (index < 0 Or index >= Me.InnerList.Count) Then
                Throw New Exception("index has to be between 0 and " & (Me.InnerList.Count - 1).ToString())
            Else
                Return CType(Me.InnerList(index), QueryInvCarSize)
            End If
        End Get
    End Property

    Public Sub Add(ByVal info As QueryInvCarSize)
        Me.InnerList.Add(info)
    End Sub

    Public Sub SetItem(ByVal index As Integer, ByVal value As QueryInvCarSize)
        If (index < 0 Or index >= Me.InnerList.Count) Then
            Throw New Exception("index has to be between 0 and " & (Me.InnerList.Count - 1).ToString())
        Else
            Me.InnerList(index) = value
        End If
    End Sub


End Class

